<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page import="java.util.List"%>
<%@ page import="com.google.appengine.api.users.User"%>
<%@ page import="com.google.appengine.api.users.UserService"%>
<%@ page import="com.google.appengine.api.users.UserServiceFactory"%>
<%@ page import="com.yofeedy.bean.UserFeeds"%>
<html>
<head>
<title>yoFEEDy</title>
<link rel="stylesheet" href="css/main.css" media="screen" />
<link rel="stylesheet" type="text/css"
	href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/themes/base/jquery-ui.css">
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript" src="scripts/main.js"></script>
<script type="text/javascript"
	src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>
<script type="text/javascript"
	src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/jquery-ui.min.js"></script>
<script>
	$(document).ready(function() {

		$('#config').click(function() {
			$('#dialog').dialog({
				resizable : false,
				modal : true,
				width : 400,
				height : 250
			});
			return false;
		});

		$(".ui-widget-header").css("display", "none");
		$("ui-widget-content").css("background-color", "#DD3355");
	});
</script>

</head>
<body id="wrapper" onload="loadPage()">
	<div id="bodywrap" style="align: center">
		<div id="main">
			<div id="body">
				<form>



					<table class="topMenu">
						<tr>
							<td>
								<div id="logoBand" class="container">
									<span> yoFEEDy <br /> <span id='caption'> The
											Feed Bank </span>
									</span>
								</div>
							</td>
							<td id="topband" align="right">
								<%
									UserService userService = UserServiceFactory.getUserService();
									User user = userService.getCurrentUser();
									if (user != null) {
										session.putValue("alreadyLogged", "true");
									 
								%>
								
								<%=user.getNickname()%> , Click here to enter <a href="/User" > yoFeedy </a>					 
								
								 &nbsp;&nbsp;|&nbsp;&nbsp; <a
								href="<%=userService.createLogoutURL("/Home")%>">Logout
							</a> <%
 	} else {
 %>
								<p>
									Hey! <a
										href="<%=userService.createLoginURL("/User")%>">Sign
										in</a> to customize your feeds...
								</p> <%
 	}
 %>
							</td>


						</tr>
					</table>
				</form>
				<div class="line"></div>


			</div>
		</div>
	</div>
</body>
</html>